Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4 |
Changes | 0 |
1 | import { resetShortUrlParams } from '../../short-urls/reducers/shortUrlsListParams'; |
||
10 | export default function reducer(state = defaultState, action) { |
||
11 | 3 | switch (action.type) { |
|
12 | case SELECT_SERVER: |
||
13 | 1 | return action.selectedServer; |
|
14 | case RESET_SELECTED_SERVER: |
||
15 | 1 | return defaultState; |
|
16 | default: |
||
17 | 1 | return state; |
|
18 | } |
||
19 | } |
||
20 | |||
33 |